package com.itheima.dao;

import com.itheima.pojo.Menu;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;

public interface UserDao {
    //查找用户
    User findByUserName(String username);
    //查找用户对应的角色
    Set <Role> rolesselectById(Integer id);
    //查找角色对应的权限
    Set<Permission> findByRoleID(Integer id);

    String selectImgByUsername(String username);

    ArrayList<Menu> selectMenuByUsername(String username);

    List<Menu> findChildren(Menu menu);

    void updatePassword(Map<String, String> map);
}
